package org.example.controller;

import com.github.pagehelper.PageInfo;
import org.example.model.common.Response;import org.example.model.common.SimProjectQry;
import org.example.service.ProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @Author: Ran
 * @Date: 2021/9/14
 **/
@RestController
@RequestMapping(value = "/api/project/")
public class ProjectController {

    @Autowired
    private ProjectService projectService;

    @RequestMapping(value = "/getPageList", method = RequestMethod.POST)
    public Response getPageList(@RequestBody SimProjectQry simProjectQry ) {
        return projectService.getProjectList(simProjectQry);
    }
}
